/**
 * PackDataCarryOverJob.java
 * Created at 2017-12-26
 * Created by zhanghailin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.timetask.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import com.broadtext.common.exp.DaoException;
import com.broadtext.rms.timetask.service.ICustomAlertTaskService;

/**
 * <p>ClassName: PackDataCarryOverJob</p>
 * <p>Description: 电池数据结转定时任务</p>
 * <p>Author: zhanghailin</p>
 * <p>Date: 2017-12-26</p>
 */
public class PackDataCarryOverJob {
    
    /**
     * 日志
     */
    private static Logger logger = LoggerFactory.getLogger(PackDataCarryOverJob.class);
    
    /**
     * 定时任务服务类
     */
    @Autowired
    @Qualifier("customAlertTaskService")
    private ICustomAlertTaskService customAlertTaskService;
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 结转电压数据</p>
     */
    public void carryOverPackBasicData() {
        logger.info("begin carry over pack Basic data!");
        this.customAlertTaskService.carryOverPackBasicData();
        logger.info("end carry over pack Basic data!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 结转电压数据</p>
     */
    public void carryOverPackVolData() {
        logger.info("begin carry over pack vol data!");
        this.customAlertTaskService.carryOverPackVolData();
        logger.info("end carry over pack vol data!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 结转温度数据</p>
     */
    public void carryOverPackTempData() {
        logger.info("begin carry over pack temp data!");
        this.customAlertTaskService.carryOverPackTempData();
        logger.info("end carry over pack temp data!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 结转温度数据</p>
     */
    public void deleteVolData() {
        logger.info("begin delete pack vol data!");
        try {
            this.customAlertTaskService.deleteVolData();
        } catch (DaoException e) {
            e.printStackTrace();
        }
        logger.info("end delete pack vol data!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 结转温度数据</p>
     */
    public void deleteTempData() {
        logger.info("begin delete pack vol data!");
        try {
            this.customAlertTaskService.deleteTempData();
        } catch (DaoException e) {
            e.printStackTrace();
        }
        logger.info("end delete pack vol data!");
    }

    /**
     *
     * <p>Description: 定时任务targetMethod 结转温度数据</p>
     */
    public void deletePackBasicData() {
        logger.info("begin delete pack vol data!");
        try {
            this.customAlertTaskService.deletePackBasicData();
        } catch (DaoException e) {
            e.printStackTrace();
        }
        logger.info("end delete pack vol data!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 创建电压表</p>
     */
    public void createVolTable() {
        logger.info("begin create pack vol table!");
        this.customAlertTaskService.createVolTable();
        logger.info("end  create pack vol table!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 创建温度表</p>
     */
    public void createTempTable() {
        logger.info("begin create pack temp table!");
        this.customAlertTaskService.createTempTable();
        logger.info("end create pack temp table!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 创建基础数据表</p>
     */
    public void createPackBasicTable() {
        logger.info("begin create pack basic table!");
        this.customAlertTaskService.createPackBaiscTable();
        logger.info("end create pack basic table!");
    }
    
    /**
     * 
     * <p>Description: 定时任务targetMethod 创建基础数据表</p>
     */
    public void carryOverScreenData() {
        logger.info("begin carry Over Screen Data!");
        try {
			this.customAlertTaskService.carryOverScreenData();
		} catch (DaoException e) {
			e.printStackTrace();
		}
        logger.info("end carry Over Screen Data!");
    }
    
    

}
